package com.example.park.dao;

import com.example.park.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface UserDao {

    UserEntity adminLogin(@Param("username") String username, @Param("password") String password);

    List<UserEntity> queryByDim(@Param("param") String param);

    List<UserEntity> queryByParam(UserEntity user);

    int insert(UserEntity user);

    int update(UserEntity user);

    int delete(@Param("id") Integer id);
}
